<template>
    <div>
        <h1>ModelDemo money:{{money}}</h1>
        <!-- <button @click="$emit('add-money','2个亿')">改为2个亿</button> -->
        <button @click="$emit('update:money','2个亿')">改为2个亿</button>
    </div>
</template>

<script>
    export default {
        props:["money"],
        // emits:["add-money"]
        emits:["update:money"]
    }
</script>

<style lang="scss" scoped>

</style>